#pragma once
#include <string>

using std::string;

class TessOCR
{
public:
	TessOCR(void);
	~TessOCR(void);

	//string Recognize(
	//	const char*		lpModuleName,	/*http://msdn.microsoft.com/en-us/library/ms683199(VS.85).aspx*/
	//	const char*		lpLanguage,		/*e.g. eng, chs, null means eng*/
	//	bool			numeric_mode,
	//	const wchar_t*	lpImagePath		/*e.g. C:\temp\123.png or .\123.png*/		
	//	);

	string Recognize(
		const char*		lpModuleName,	/*http://msdn.microsoft.com/en-us/library/ms683199(VS.85).aspx*/
		const char*		lpLanguage,		/*e.g. eng, chs, null means eng*/
		bool			numeric_mode,
		const unsigned char* buffer,	/*image buffer*/
		int				bytes_per_pixel,
		int				bytes_per_line,
		int				left, 
		int				top,
		int				width, 
		int				height
		);
};

